package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.web.webstart.base.util.XaUtil;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author eason
 * @ClassName: InsHotelRoomsTable
 * @Description: 机构-酒店房间表定义表
 * @date 2016-11-04 10:58:15
 */
@Entity
@Table(name = "tb_xa_inshotelroomstable")
@ApiModel(value = "机构-酒店房间表定义表")
public class InsHotelRoomsTable extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房型名称,房型名称")
    private String hotelRooms_Name;
    @ApiModelProperty(value = "房型价格,房型价格")
    private Double hotelRooms_Price;
    @ApiModelProperty(value = "库存,库存")
    private Integer hotelRooms_Inventory;
    @ApiModelProperty(value = "机构编码,机构编码（外键）")
    private Long institutionId;
    @ApiModelProperty(value = "房型简介(富文本，全文字),房型简介")
    private String hotelRooms_Brief;
    @ApiModelProperty(value = "房型价格单位（天、月）")
    private String hotelRooms_Price_unit;
    @ApiModelProperty(value = "房型(单人间，双人间，多人间；小套，中套，大套；)")
    private String hourseType;
    @ApiModelProperty(value = "房间图片（banner）URL，多张逗号分割,房间图片URL，多张逗号分割")
    private String banner;

    /**
     * 买卡 or 预订
     */
    @ApiModelProperty(value = "卖卡预订价格;卖卡预订价格,只有isSellByCard=true，才有此字段")
    private Double bookPrice;
    @ApiModelProperty(value = "是否按卡出售;是否按卡出售")
    private Boolean isSellByCard;

    public InsHotelRoomsTable() {
    }

    public void setHotelRooms_Name(String hotelRooms_Name) {
        this.hotelRooms_Name = hotelRooms_Name;
    }

    @Column(nullable = true, length = 50)
    public String getHotelRooms_Name() {
        return hotelRooms_Name;
    }

    public void setHotelRooms_Price(Double hotelRooms_Price) {
        this.hotelRooms_Price = hotelRooms_Price;
    }

    @Column(nullable = true, length = 50)
    public Double getHotelRooms_Price() {
        return hotelRooms_Price;
    }

    public void setHotelRooms_Inventory(Integer hotelRooms_Inventory) {
        this.hotelRooms_Inventory = hotelRooms_Inventory;
    }

    @Column(nullable = true, length = 50)
    public Integer getHotelRooms_Inventory() {
        return hotelRooms_Inventory;
    }

    public void setInstitutionId(Long institutionId) {
        this.institutionId = institutionId;
    }

    @Column(nullable = true, length = 50)
    public Long getInstitutionId() {
        return institutionId;
    }


    public void setHotelRooms_Brief(String hotelRooms_Brief) {
        this.hotelRooms_Brief = hotelRooms_Brief;
    }

    @Column(nullable = true, length = 1000)
    public String getHotelRooms_Brief() {
        return hotelRooms_Brief;
    }

    public void setHotelRooms_Price_unit(String hotelRooms_Price_unit) {
        this.hotelRooms_Price_unit = hotelRooms_Price_unit;
    }

    @Column(nullable = true, length = 50)
    public String getHotelRooms_Price_unit() {
        return hotelRooms_Price_unit;
    }


    @Column(nullable = true, length = 50)
    public String getHourseType() {
        return hourseType;
    }

    public void setHourseType(String hourseType) {
        this.hourseType = hourseType;
    }

    @Column(nullable = true, length = 5000)
	public String getBanner() {
		return banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

    public void setIsSellByCard(Boolean isSellByCard) {
        this.isSellByCard = isSellByCard;
    }

    @Column(nullable = true, length = 5)
    public Boolean getIsSellByCard() {
        return XaUtil.getBool(isSellByCard);
    }

    @Column(nullable = true, length = 50)
    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }
}
